<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Collection_field extends Db_field
{
	protected $defaults = array(
		'data_type' => 'ENUM',
		'data_values' => array(),
		'default_value' => '',
		'allow_null' => false
	);
	
	public function __construct(Array $properties)
	{
		// Extend defaults with passed-in properties
		$properties = array_merge($this->defaults, $properties);
		
		parent::__construct($properties);
	}
} // end Collection_field